package cn.com.twoke.game.common.entity.message;

import cn.com.twoke.game.common.constants.MessageType;

public class StartGameMessage extends Message {

    private String roomMasterId;
    private String gameId;
    private String roomId;
    private int playerCount;

    public StartGameMessage(String roomMasterId, String gameId, String roomId, int playerCount) {
        super();
        this.roomMasterId = roomMasterId;
        this.gameId = gameId;
        this.roomId = roomId;
        this.playerCount = playerCount;
    }

    public StartGameMessage(String roomMasterId, String gameId, String roomId) {
        super();
        this.roomMasterId = roomMasterId;
        this.gameId = gameId;
        this.roomId = roomId;
        this.playerCount = 1;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getRoomMasterId() {
        return roomMasterId;
    }

    public void setRoomMasterId(String roomMasterId) {
        this.roomMasterId = roomMasterId;
    }

    public String getGameId() {
        return gameId;
    }

    public void setGameId(String gameId) {
        this.gameId = gameId;
    }

    @Override
    public MessageType getType() {
        return MessageType.START_GAME;
    }

    public int getPlayerCount() {
        return playerCount;
    }

    public void setPlayerCount(int playerCount) {
        this.playerCount = playerCount;
    }
}
